package com.example.rental.entity.dto;

import lombok.Data;

public class PageDto {

    private Integer startIndex;
    private Integer limit;
    private Integer page;


    public Integer getStartIndex() {
        return this.limit*(this.page-1);
    }

    public void setStartIndex(Integer startIndex) {
        this.startIndex = startIndex;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }
}
